/*
package com.it.web.bus;

import com.it.goods.api.GoodsApi;
import com.it.goods.vo.GoodsVO;
import com.it.user.api.UserApi;
import com.it.user.vo.UserVO;
import com.it.web.config.IdGenerator;
import com.it.web.config.Result;

import com.it.web.controller.bo.UserBusBO;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

@Service
public class UserBusService {
    //用户服务
    @DubboReference(version = "${user.service.version}")
    private UserApi userApi;
    @Autowired
    private IdGenerator idGenerator;
    */
/**
     * 查询用户
     *
     * @return
     *//*

    public Result queryUserById(long userId) {
        Result result = new Result();
        UserVO userVO = userApi.queryUserByUserId(userId);
        result.setData(userVO);
        return result;
    }

    */
/**
     * 添加用户
     *
     * @return
     *//*

    public Result addUser(UserBusBO userBusBO) {
        Result result = new Result();
        UserVO userVO = new UserVO();
        BeanUtils.copyProperties(userBusBO, userVO);
        userVO.setUserId(idGenerator.getGlobalId());
        userApi.addUser(userVO);
        return result;
    }

    */
/**
     * 删除商品
     *
     * @return
     *//*

    public Result delUser(long goodsId) {
        Result result = new Result();
        userApi.delUserByUserId(goodsId);
        return result;

    }

    */
/**
     * 修改商品
     *
     * @return
     *//*

    public Result updateUser(UserBusBO userBusBO) {
        Result result = new Result();
        UserVO userVO = new UserVO();
        BeanUtils.copyProperties(userBusBO, userVO);
        userApi.updateUserByUserId(userVO);
        return result;
    }

}
*/
